<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Upgrade iRedMail from 1.6.5 to 1.6.6</title>
        <link rel="stylesheet" type="text/css" href="./css/markdown.css" />
    </head>
    <body>

    <div id="navigation">
    <a href="https://www.iredmail.org" target="_blank">
        <img alt="iRedMail web site"
             src="./images/logo-iredmail.png"
             style="vertical-align: middle; height: 30px;"
             />&nbsp;
        <span>iRedMail</span>
    </a>
    &nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages. <a href="https://github.com/iredmail/docs">Help translate more</a></p>
<p><a href="./upgrade.iredmail.1.6.5-1.6.6-nl_DU.html">Nederlands</a> /</p>
</div>
<h1 id="upgrade-iredmail-from-165-to-166">Upgrade iRedMail from 1.6.5 to 1.6.6</h1>
<div class="admonition attention">
<p class="admonition-title">Attention</p>
<p>Check out the on-premises, lightweight email archiving software developed by iRedMail team: <a href="https://spiderd.io/">Spider Email Archiver</a>.</p>
</div>
<div class="toc">
<ul>
<li><a href="#upgrade-iredmail-from-165-to-166">Upgrade iRedMail from 1.6.5 to 1.6.6</a><ul>
<li><a href="#changelog">ChangeLog</a></li>
<li><a href="#general-all-backends-should-apply-these-changes">General (All backends should apply these changes)</a><ul>
<li><a href="#update-etciredmail-release-with-new-iredmail-version-number">Update /etc/iredmail-release with new iRedMail version number</a></li>
<li><a href="#fail2ban-do-not-ban-client-which-triggered-lost-connection-after-unknown-error">Fail2ban: do not ban client which triggered lost connection after UNKNOWN error</a></li>
<li><a href="#upgrade-netdata-to-the-latest-stable-release-1430">Upgrade netdata to the latest stable release (1.43.0)</a></li>
<li><a href="#upgrade-roundcube-webmail-to-the-latest-stable-release-164">Upgrade Roundcube webmail to the latest stable release (1.6.4)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="admonition note">
<p class="admonition-title">Remote Upgrade Assistance</p>
<p>Check out our <a href="https://www.iredmail.org/support.html">remote upgrade support</a> if you need assistance.</p>
</div>
<h2 id="changelog">ChangeLog</h2>
<ul>
<li>Oct 23, 2023: initial publish.</li>
</ul>
<h2 id="general-all-backends-should-apply-these-changes">General (All backends should apply these changes)</h2>
<h3 id="update-etciredmail-release-with-new-iredmail-version-number">Update <code>/etc/iredmail-release</code> with new iRedMail version number</h3>
<p>iRedMail stores the release version in <code>/etc/iredmail-release</code> after
installation, it's recommended to update this file after you upgraded iRedMail,
so that you can know which version of iRedMail you're running. For example:</p>
<pre><code>1.6.6
</code></pre>
<h3 id="fail2ban-do-not-ban-client-which-triggered-lost-connection-after-unknown-error">Fail2ban: do not ban client which triggered <code>lost connection after UNKNOWN</code> error</h3>
<p>Please run commands below as root user to get latest filter file for Roundcube:</p>
<pre><code>cd /etc/fail2ban/filter.d/
wget -O postfix.iredmail.conf https://raw.githubusercontent.com/iredmail/iRedMail/1.6.6/samples/fail2ban/filter.d/postfix.iredmail.conf
</code></pre>
<p>Restarting <code>fail2ban</code> service is required.</p>
<h3 id="upgrade-netdata-to-the-latest-stable-release-1430">Upgrade netdata to the latest stable release (1.43.0)</h3>
<p>If you have netdata installed, you can upgrade it by following this tutorial:
<a href="./upgrade.netdata.html">Upgrade netdata</a>.</p>
<h3 id="upgrade-roundcube-webmail-to-the-latest-stable-release-164">Upgrade Roundcube webmail to the latest stable release (1.6.4)</h3>
<div class="admonition warning">
<p class="admonition-title">CentOS 7: please stick to Roundcube 1.5.2</p>
<p>If you're running CentOS 7, please upgrade to Roundcube 1.5.2 instead.
Roundcube 1.5.3 requires PHP-7, but CentOS 7 ships PHP-5.4 which is not
supported by Roundcube 1.5.3 and later releases, including 1.6.x.</p>
<p><strong>Unfortunately, Roundcube 1.5.2 does NOT contains the security fix which
shipped in Roundcube 1.5.4 and 1.5.5.</strong></p>
<p>It's time to leave your comfort zone and upgrade this server to at least
CentOS Stream 8 or <a href="https://docs.rockylinux.org/guides/migrate2rocky/">Rocky Linux 8</a>.</p>
</div>
<div class="admonition warning">
<p class="admonition-title">Ubuntu 18.04: please stick to Roundcube 1.5.5</p>
<p>Ubuntu 18.04 runs old php version, v1.5.5 contains the security fix too.
Anyway, please consider upgrading your OS to 20.04 LTS as soon as possible.</p>
</div>
<p>Roundcube v1.6.4 and 1.5.5 are security updates. Both fix a cross-site
scripting (XSS) vulnerability.</p>
<p>Please follow Roundcube official tutorial to upgrade Roundcube webmail to the
latest stable release:</p>
<ul>
<li><a href="https://github.com/roundcube/roundcubemail/wiki/Upgrade">How to upgrade Roundcube</a>.</li>
</ul><div class="footer">
    <p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div></body></html>